package top.xinsix.est.service;
import top.xinsix.est.dto.ModelDto;
import top.xinsix.est.pojo.Model;
import java.util.Date;
import java.util.List;
import java.util.Map;
import top.xinsix.est.dto.Page;
import top.xinsix.est.req.ModelReq;

/**
* Created by shang-pc on 2015/11/7.
*/
public interface ModelService {

    public Model getModelById(Long id);

    public List<Model>	getModelListByMap(Map<String,Object> param);

    public Integer getModelCountByMap(Map<String,Object> param);

    public Integer qdtxAddModel(Model model);

    public Integer qdtxModifyModel(Model model);

    public Integer qdtxDeleteModelById(Long id);

    public Integer qdtxBatchDeleteModel(String ids);

    public Page<Model> queryModelPageByMap(Map<String,Object> param,Integer pageNo,Integer pageSize);

    /**
     * 根据商品名称、品牌id、分类id分页查询商品列表
     * @param modelReq 查询条件对象
     * @return  商品列表
     */
    public Page search(ModelReq modelReq);

    /**
     * 根据商品的型号id查询详细信息
     * @param id
     * @return
     */
    public ModelDto getModelDtoById(Long id);

}
